package com.time;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/**
 * @author 张龙佼
 * @Description time—buy应用启动类
 * @since 2020-10-14
 */

@SpringBootApplication
@MapperScan(basePackages = "com.time.mapper")
public class TimeBuyApplication extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(TimeBuyApplication.class);
    }

    public static void main(String[] args) {
        SpringApplication.run(TimeBuyApplication.class, args);
    }
}
